<?php


namespace Mob\Controller;

use Think\Controller;


class ErrorController extends BaseController
{
	private $ErrorCode;  //错误代码
	private $ErrMsg;     //错误原因
	private $ErrUrl;    //错误的URL
	private $ErrLevel;   //错误级别
	private $IsWirte=false;  //是否需要写日志



    public function _initialize()
    {
     $this->ErrorCode = I('ErrorCode');
     $this->ErrMsg = I('ErrMsg');
     $this->ErrUrl = I('ErrUrl');
     $this->ErrLevel = I('ErrLevel');

    }

    public function index()
    {
     $ErrInfo['ErrorCode']=	$this->ErrorCode;
     $ErrInfo['ErrMsg']=$this->ErrMsg;
     $ErrInfo['ErrUrl']=$this->ErrUrl;
     $ErrInfo['ErrLevel']=$this->ErrLevel;
     $this->IsWrite();
     $this->assign('ErrInfo',$ErrInfo);
     print_r($ErrInfo);
   //  $this->display();

    }
    private function IsWrite()
    {
      if($this->IsWirte)
      {
       $this->WriteLog();

      }

    }

    private function WriteLog()
    {

    }


}